import { createRouter, createWebHashHistory } from "vue-router";
import { constanceRoutes } from "./routes";
export default createRouter({
  // 路由模式
  history: createWebHashHistory(),
  routes: constanceRoutes,
  //  滚动行为
  scrollBehavior() {
    return {
      top: 0,
      left: 0,
    };
  },
});
